package com.example.springboot.entity;

import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.Data;

import java.io.Serializable;

/**
 * (Article)表实体类
 *
 * @author makejava
 * @since 2023-05-11 19:23:11
 */
@Data
public class Article extends Model<Article> {
    //文章id
    private Integer id;
    //文章封面
    private String articleCover;
    //文章标题
    private String articleTitle;
    //文章简介
    private String articleInformation;
    //文章作者
    private String articleAuthor;
    //文章连接
    private String articleUrl;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getArticleCover() {
        return articleCover;
    }

    public void setArticleCover(String articleCover) {
        this.articleCover = articleCover;
    }

    public String getArticleTitle() {
        return articleTitle;
    }

    public void setArticleTitle(String articleTitle) {
        this.articleTitle = articleTitle;
    }

    public String getArticleInformation() {
        return articleInformation;
    }

    public void setArticleInformation(String articleInformation) {
        this.articleInformation = articleInformation;
    }

    public String getArticleAuthor() {
        return articleAuthor;
    }

    public void setArticleAuthor(String articleAuthor) {
        this.articleAuthor = articleAuthor;
    }

    public String getArticleUrl() {
        return articleUrl;
    }

    public void setArticleUrl(String articleUrl) {
        this.articleUrl = articleUrl;
    }

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    protected Serializable pkVal() {
        return this.id;
    }
    }

